/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.ucase.casemain.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.icinfo.framework.mybatis.mapper.annotation.Before;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 描述: 案件线下文书记录表 case_offline_document_record 对应的实体类.<br>
 * WARNING：不是表中字段的属性必须加@Transient注解
 *
 * @author framework generator
 * @date 2022年07月26日
 */
@Data
@Table(name = "upcase.case_offline_document_record")
public class CaseOfflineDocumentRecord implements Serializable {
    /**
     * 主键id
     */
    @Id
    @Column(name = "id")
    @Before
    private String id;

    /**
     * 案件Id
     */
    @Column(name = "case_id")
    private String caseId;

    /**
     * 案件阶段名称
     */
    @Column(name = "case_stage_name")
    private String caseStageName;

    /**
     * 案件阶段编码
     */
    @Column(name = "case_stage_code")
    private String caseStageCode;

    /**
     * 案件环节名称
     */
    @Column(name = "case_link_name")
    private String caseLinkName;

    /**
     * 案件环节编码
     */
    @Column(name = "case_link_code")
    private String caseLinkCode;

    /**
     * 文书种类编码
     */
    @Column(name = "document_kind_code")
    private String documentKindCode;

    /**
     * 文书种类名称
     */
    @Column(name = "document_kind_name")
    private String documentKindName;

    /**
     * 文书类别：1审批表2法律文书
     */
    @Column(name = "document_type")
    private String documentType;

    /**
     * 文书标题
     */
    @Column(name = "document_tittle")
    private String documentTittle;

    /**
     * 文书说明
     */
    @Column(name = "document_desc")
    private String documentDesc;
    /**
     * 文书地址
     */
    @Column(name = "document_url")
    private String documentUrl;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 添加人id
     */
    @Column(name = "create_user_id")
    private String createUserId;

    /**
     * 添加人名称
     */
    @Column(name = "create_user_name")
    private String createUserName;
    /**
     * 附件名称
     */
    @Column(name = "appendix_name")
    private String appendixName;
    /**
     * 附件名称(前缀)
     */
    @Column(name = "appendix_name_prefix")
    private String appendixNamePrefix;
    /**
     * 附件名称(后缀)
     */
    @Column(name = "appendix_name_suffix")
    private String appendixNameSuffix;
    /**
     * 文书状态 1:正常3:撤回
     */
    @Column(name = "status")
    private String status;
    /**
     * 文书目录编码
     */
    @Column(name = "document_catalog_code")
    private String documentCatalogCode;
    private static final long serialVersionUID = 1L;

}
